package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.LevelRecordClient;
import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import com.chinacoal.hr.levelapi.entity.LeaveRecord;

/**
 * Created by jinyabin on 2020/10/29.
 */
public class LevelRecordClientFallback implements LevelRecordClient{


    @Override
    public Result list(long page, long limit, String orgCode, String deptCode, String deptName, String empName, String empCode, String holidayType, String businessStatus, String startDate, String endDate, String queryRange) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result add(LeaveRecord record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result update(String levelId, LeaveRecord record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result delete(String levelId) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result submit(String levelId, LeaveRecord record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    @Override
    public Result drawback(String levelId, LeaveRecord record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
